package com.company.car;

public final class Car extends MotoVehicle {
    String type;

    public Car(String type, String no) {
        this.type = type;
        this.no = no;
    }

    @Override
    public int CalcRent(int days) {
        if ("别克商务舱GL8".equals(this.type))
           return days*600;
        else if ("宝马550i".equals(this.type))
            return days*500;
        else if ("别克林荫大道".equals(this.type))
            return days*300;
        return 0;
    }
}
